package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新品轮播图对象 banner
 * 
 * @author Wxl
 * @date 2022-03-28
 */
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联食堂ID */
    @Excel(name = "关联食堂ID")
    private Long canteenId;

    /** 主键 */
    /** 主键 */
    @TableId(type= IdType.AUTO)
    private Long bannerId;

    /** 轮播图路径 */
    @Excel(name = "轮播图路径")
    private String bannerUrl;

    public void setCanteenId(Long canteenId) 
    {
        this.canteenId = canteenId;
    }

    public Long getCanteenId() 
    {
        return canteenId;
    }
    public void setBannerId(Long bannerId) 
    {
        this.bannerId = bannerId;
    }

    public Long getBannerId() 
    {
        return bannerId;
    }
    public void setBannerUrl(String bannerUrl) 
    {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerUrl() 
    {
        return bannerUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("canteenId", getCanteenId())
            .append("bannerId", getBannerId())
            .append("bannerUrl", getBannerUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
